<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" xmlns:th="http://www.thymeleaf.org">
    <title>Title</title>
</head>
<body>
<form action="/update1" method="post">
    <input type="hidden" name="id" th:value="${dan.id}">
    <p>名称:<input type="text" th:value="${dan.name}" name="name" required></p>
    <p>价格:<input type="text" th:value="${dan.price}" name="price" required pattern="^\d{1,5}$"></p>
    <p>类别:<input type="text" th:value="${dan.category}" name="category" required></p>
    <p>数量:<input type="text" th:value="${dan.pnum}" name="pnum" required pattern="^\d{1,5}$"></p>
    <p>简述:<input type="text" th:value="${dan.description}" name="description" required></p>
    <p>作者:<input type="text" th:value="${dan.author}" name="author" required></p>
    <p>销售量:<input type="text" th:value="${dan.sales}" name="sales" required pattern="^\d{1,5}$"></p>
    <input type="submit" value="提交">
</form>
<a th:text="返回" th:href="@{/hello}" ></a>
</body>
</html>